package eu.horyzont.systemyrozproszone.systemmagazynowy.serwer.session;

import eu.horyzont.systemyrozproszone.systemmagazynowy.serwer.entities.Entity;
import java.util.List;

/**
 * Data store session.
 * @author pawel
 */
public interface Session {

    public <T extends Entity> T findSingle(String statement);
    public <T extends Entity> T findSingle(String statement, Object... parameters);
    public <T extends Entity> List<T> find(String statement, Object... parameters);
    public <T extends Entity> List<T> find(String statement);
    public void remove(Entity obj);
    public void save(Entity obj);
    
}
